/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package model.service.impl;

import model.dao.PadronElectoralDao;
import model.service.PadronElectoralService;
import model.bean.PadronElectoral;
import java.util.List;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

/**
 * @Archivo PadronElectoralServiceImpl.java
 * @Fecha                @Autor   @Cambios
 * 21/01/2011 04:40:13 PM       moshiro
 */
@Service
public class PadronElectoralServiceImpl implements PadronElectoralService {

    @Autowired
    private PadronElectoralDao padronElectoralDao;

    @Override
    public Long agregarPadronElectoral(PadronElectoral padronElectoral) throws Exception {
        return padronElectoralDao.agregarPadronElectoral(padronElectoral);
    }

    @Override
    public Integer modificarPadronElectoral(PadronElectoral padronElectoral) throws Exception {
        return padronElectoralDao.modificarPadronElectoral(padronElectoral);
    }

    @Override
    public Integer eliminarPadronElectoral(Long codigo) throws Exception {
        return padronElectoralDao.eliminarPadronElectoral(codigo);
    }

    @Override
    public Integer generarPadronElectoral(Long codigo) throws Exception {
        return padronElectoralDao.generarPadronElectoral(codigo);
    }

    @Override
    public List<PadronElectoral> listarPadronElectoral(PadronElectoral padronElectoral) throws Exception {
        return padronElectoralDao.listarPadronElectoral(padronElectoral);
    }
}
